\documentclass[11pt,a4paper,serbian,oneside]{book}
\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{textcomp}
\usepackage{amsfonts}
\usepackage{graphicx}
%\usepackage{ucs}
\usepackage{listings}
\usepackage[serbianc]{babel}
%\usepackage{pdfsync}
\usepackage[left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm]{geometry}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{color}
\usepackage{xcolor}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{url}
\usepackage{fancyvrb}
\usepackage{verbatimbox}
\usepackage{listings,mdframed}% http://ctan.org/pkg/{listings,mdframed}
\usepackage[section]{placeins}
\usepackage[toc,acronym]{glossaries}
% Definisanje boja
\definecolor{lightgray}{rgb}{0.95, 0.95, 0.95}
\definecolor{darkgray}{rgb}{0.4, 0.4, 0.4}
\definecolor{purple}{rgb}{0.65, 0.12, 0.82}
\definecolor{ocherCode}{rgb}{1, 0.5, 0}
\definecolor{blueCode}{rgb}{0, 0, 0.93} % #0000EE -> rgb(0, 0, 238)
\definecolor{greenCode}{rgb}{0, 0.6, 0} % #009900 -> rgb(0, 153, 0) 

\colorlet{punct}{red!60!black}
%\definecolor{background}{HTML}{EEEEEE}
\definecolor{delim}{RGB}{20,105,176}
\colorlet{numb}{magenta!60!black}

% Komanda za horizontal ruler
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\renewcommand*\arraystretch{1.5}

\def\zn{,\kern-0.09em,}
%
% Definicija fiksiranih reci
%
\addto\captionsserbian{%
 \def\prefacename{Предговор}%
 \def\refname{Списак литературе}%
 \def\abstractname{Сажетак}%
 \def\bibname{Литература}%
 \def\chaptername{Глава}%
 \def\appendixname{Додатак}%
 \def\contentsname{Садржај}%
 \def\listfigurename{Списак слика}%
 \def\listtablename{Списак табела}%
 \def\indexname{Регистар}%
 \def\figurename{Слика}%
 \def\tablename{Табела}%
 \def\partname{Део}%
 \def\enclname{Прилози}%
 \def\ccname{Копије}%
 \def\headtoname{Прима}%
 \def\pagename{Страна}%
 \def\seename{Види}%
 \def\alsoname{Види такође}%
 \def\proofname{Доказ}%
 \def\glossaryname{Речник непознатих речи}
 \def\contentsname{Садржај}%
 }%

%
% Podesavanja paketa za listinge
%
\renewcommand\lstlistingname{Листинг}

\lstdefinelanguage{CSS}{
  morekeywords={accelerator,azimuth,background,background-attachment,
    background-color,background-image,background-position,
    background-position-x,background-position-y,background-repeat,
    behavior,border,border-bottom,border-bottom-color,
    border-bottom-style,border-bottom-width,border-collapse,
    border-color,border-left,border-left-color,border-left-style,
    border-left-width,border-right,border-right-color,
    border-right-style,border-right-width,border-spacing,
    border-style,border-top,border-top-color,border-top-style,
    border-top-width,border-width,bottom,caption-side,clear,
    clip,color,content,counter-increment,counter-reset,cue,
    cue-after,cue-before,cursor,direction,display,elevation,
    empty-cells,filter,float,font,font-family,font-size,
    font-size-adjust,font-stretch,font-style,font-variant,
    font-weight,height,ime-mode,include-source,
    layer-background-color,layer-background-image,layout-flow,
    layout-grid,layout-grid-char,layout-grid-char-spacing,
    layout-grid-line,layout-grid-mode,layout-grid-type,left,
    letter-spacing,line-break,line-height,list-style,
    list-style-image,list-style-position,list-style-type,margin,
    margin-bottom,margin-left,margin-right,margin-top,
    marker-offset,marks,max-height,max-width,min-height,
    min-width,-moz-binding,-moz-border-radius,
    -moz-border-radius-topleft,-moz-border-radius-topright,
    -moz-border-radius-bottomright,-moz-border-radius-bottomleft,
    -moz-border-top-colors,-moz-border-right-colors,
    -moz-border-bottom-colors,-moz-border-left-colors,-moz-opacity,
    -moz-outline,-moz-outline-color,-moz-outline-style,
    -moz-outline-width,-moz-user-focus,-moz-user-input,
    -moz-user-modify,-moz-user-select,orphans,outline,
    outline-color,outline-style,outline-width,overflow,
    overflow-X,overflow-Y,padding,padding-bottom,padding-left,
    padding-right,padding-top,page,page-break-after,
    page-break-before,page-break-inside,pause,pause-after,
    pause-before,pitch,pitch-range,play-during,position,quotes,
    -replace,richness,right,ruby-align,ruby-overhang,
    ruby-position,-set-link-source,size,speak,speak-header,
    speak-numeral,speak-punctuation,speech-rate,stress,
    scrollbar-arrow-color,scrollbar-base-color,
    scrollbar-dark-shadow-color,scrollbar-face-color,
    scrollbar-highlight-color,scrollbar-shadow-color,
    scrollbar-3d-light-color,scrollbar-track-color,table-layout,
    text-align,text-align-last,text-decoration,text-indent,
    text-justify,text-overflow,text-shadow,text-transform,
    text-autospace,text-kashida-space,text-underline-position,top,
    unicode-bidi,-use-link-source,vertical-align,visibility,
    voice-family,volume,white-space,widows,width,word-break,
    word-spacing,word-wrap,writing-mode,z-index,zoom},
  morestring=[s]{:}{;},
  sensitive,
  morecomment=[s]{/*}{*/}
}

\lstdefinestyle{nonumbers}
{numbers=none}


\lstdefinelanguage{HTML5}{
    sensitive=true,
    keywords={%
    % JavaScript
    typeof, new, true, false, catch, function, return, null, catch, switch, var, if, in, while, do, else, case, break,
    % HTML
    html, title, meta, style, head, body, script, canvas, div
    % CSS
    border:, transform:, -moz-transform:, transition-duration:, transition-property:,
    transition-timing-function:
    },
    % http://texblog.org/tag/otherkeywords/
    otherkeywords={<, >, \/},   
    ndkeywords={class, export, boolean, throw, implements, import, this},   
    comment=[l]{//},
    % morecomment=[s][keywordstyle]{<}{>},  
    morecomment=[s]{/*}{*/},
    morecomment=[s]{<!}{>},
    morestring=[b]',
    morestring=[b]",    
    alsoletter={-},
    alsodigit={:}
}

\lstdefinelanguage{json}{
    basicstyle=\normalfont\ttfamily,
    numbers=left,
    numberstyle=\scriptsize,
    stepnumber=1,
    numbersep=8pt,
    showstringspaces=false,
    breaklines=true,
    frame=lines,
    %backgroundcolor=\color{background},
    literate=
     *{0}{{{\color{numb}0}}}{1}
      {1}{{{\color{numb}1}}}{1}
      {2}{{{\color{numb}2}}}{1}
      {3}{{{\color{numb}3}}}{1}
      {4}{{{\color{numb}4}}}{1}
      {5}{{{\color{numb}5}}}{1}
      {6}{{{\color{numb}6}}}{1}
      {7}{{{\color{numb}7}}}{1}
      {8}{{{\color{numb}8}}}{1}
      {9}{{{\color{numb}9}}}{1}
      {:}{{{\color{punct}{:}}}}{1}
      {,}{{{\color{punct}{,}}}}{1}
      {\{}{{{\color{delim}{\{}}}}{1}
      {\}}{{{\color{delim}{\}}}}}{1}
      {[}{{{\color{delim}{[}}}}{1}
      {]}{{{\color{delim}{]}}}}{1},
}


\lstset {
	basicstyle=\ttfamily\tiny
	numbers=left,
	numberstyle=\tiny,
	%stepnumber=2,
	numbersep=5pt,
	extendedchars=true,
	breaklines=true,
	keywordstyle=\color{blue},
	frame=b,
    % Code design
	stringstyle=\color{white}\ttfamily,
    identifierstyle=\color{black},
    keywordstyle=\color{blue}\bfseries,
    ndkeywordstyle=\color{greenCode}\bfseries,
    commentstyle=\color{darkgray}\ttfamily,
    % Code    
	tabsize=2,    
	showspaces=false,
	showtabs=false,
	xleftmargin=17pt,
	framexleftmargin=14pt,
	framexrightmargin=3pt,
	framexbottommargin=4pt,
	framextopmargin=0pt,
	%backgroundcolor=\color{lightgray},
	showstringspaces=false,
    extendedchars=true,
    breaklines=true    
}


\makeatletter
%% define a caption format; if the caption
%% is the default (\relax), the separator is
%% not printed; as long as no caption text
%% starts with \relax, this will work
\DeclareCaptionFormat{alsoempty}{%
  #1\if\relax\expandafter\noexpand\lst@caption\else#2#3\fi}
\makeatother
%% set this format as the default for lstlisting
\captionsetup[lstlisting]{format=alsoempty}

\lstset{%
    % Basic design
    basicstyle=\fontsize{10}{10}\selectfont\ttfamily,
    frame=l,
    % Line numbers
    xleftmargin={0.75cm},
    numbers=left,
    stepnumber=1,
    firstnumber=1,
    numberfirstline=true,
    % Code design
    identifierstyle=\color{black},
    keywordstyle=\color{blue}\bfseries,
    ndkeywordstyle=\color{greenCode}\bfseries,
    stringstyle=\color{ocherCode}\ttfamily,
    commentstyle=\color{darkgray}\ttfamily,
    % Code
    language={HTML5},
    tabsize=2,
    showtabs=false,
    showspaces=false,
    showstringspaces=false,
    extendedchars=true,
    breaklines=true,
    caption=\relax
    %captionpos=b
}

\lstloadlanguages {
	% Check Documentation for further languages ...
	%[Visual]Basic
	%Pascal
	C,
	%C++
	%Java,
	%XML,
	%HTML5
}

%
% Podesavanje okvira listinga
%
\DeclareCaptionFont{black}{\color{black}}
\DeclareCaptionFormat{listing}{\colorbox[cmyk]{0, 0, 0,0.01}{\parbox{\textwidth}{\hspace{12pt}#1#2#3}}}
\captionsetup[lstlisting]{format=listing,labelfont=black,textfont=black, singlelinecheck=false, margin=0pt, font={bf,footnotesize} }

\makeglossaries
 
\newglossaryentry{MDS}
{
    name=MDS,
    description={Metadata Server}
}
\newglossaryentry{MDT}
{
    name=MDT,
    description={Metadata Target}
}

\newglossaryentry{OSS}
{
    name=OSS,
    description={Object Storage Servers}
}

\newglossaryentry{OST}
{
    name=OST,
    description={Object Storage Target}
}

\newglossaryentry{NFS}
{
    name=NFS,
    description={Network File Sistem}
}

\newglossaryentry{HPC}
{
    name=HPC,
    description={High-Performance Computing}
}

\newglossaryentry{API}
{
    name=API,
    description={Application Programming Interface}
}

\newglossaryentry{MDC}
{
    name=MDC,
    description={Metadata Client}
}
\newglossaryentry{OSC}
{
    name=OSC,
    description={Object Storage Client}
}
\newglossaryentry{MGC}
{
    name=MGC,
    description={Management Client}
}
\newglossaryentry{NAL}
{
    name=NAL,
    description={Network Abstraction Layers}
}

\newglossaryentry{LNET}
{
    name=LNET,
    description={Lustre Networking}
}
\newglossaryentry{LVM}
{
    name=LVM,
    description={Logical Volume Management}
}
\newglossaryentry{ACL}
{
    name=ACL,
    description={Access Control Lists}
}
\newglossaryentry{PDSH}
{
    name=PDSH,
    description={Parallel Distributed SHell}
}
\newglossaryentry{SSH}
{
    name=SSH,
    description={Secure SHell}
}
\newglossaryentry{NTP}
{
    name=NTP,
    description={Network Time Protocol}
}
\newglossaryentry{SELinux}
{
    name=SELinux,
    description={Security-Enhanced Linux}
}
\newglossaryentry{SNMP}
{
    name=SNMP,
    description={Simple Network Management Protocol}
}
\newglossaryentry{MPI}
{
    name=MPI,
    description={Message-Passing Interface}
}
\newglossaryentry{RMA}
{
    name=RMA,
    description={Remote Memory Access}
}
\newglossaryentry{PVM}
{
    name=PVM,
    description={Parallel Virtual Machine }
}
\newglossaryentry{NAT}
{
    name=NAT,
    description={Network Address Translation }
}
%
% Pocetak dokumenta
%
\begin{document}




\input{naslovna.tex}

\tableofcontents
\newpage

\printglossary[style=long,title={Скраћенице}]

\newpage

\input{poglavlja/ch_uvod.tex}
\input{poglavlja/ch_komponente.tex}
\input{poglavlja/ch_fajlovi_u_lustre_sistemu.tex}
\input{poglavlja/ch_kljucne_karakteristike.tex}
\input{poglavlja/ch_predinstalacija.tex}
\input{poglavlja/ch_instalacija.tex}
\input{poglavlja/ch_komanda.tex} 
\input{poglavlja/mpi_uvod.tex}
\input{poglavlja/mpi_process_start_up.tex}
\input{poglavlja/mpi_i_o.tex}
\input{poglavlja/mpi_remote.tex}
\input{poglavlja/process_management.tex}
%\input{poglavlja/testiranje_performansi.tex}
\input{poglavlja/ch_literatura.tex}



\end{document}